package com.neu.carbon.wms.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.neu.carbon.wms.mapper.WmsCarrierApplyMapper;
import com.neu.carbon.wms.domain.WmsCarrierApply;
import com.neu.carbon.wms.service.IWmsCarrierApplyService;

/**
 * 产品承运申请Service业务层处理
 * 
 * @author neuedu
 * @date 2024-03-02
 */
@Service
public class WmsCarrierApplyServiceImpl implements IWmsCarrierApplyService 
{
    @Autowired
    private WmsCarrierApplyMapper wmsCarrierApplyMapper;

    /**
     * 查询产品承运申请
     * 
     * @param id 产品承运申请ID
     * @return 产品承运申请
     */
    @Override
    public WmsCarrierApply selectWmsCarrierApplyById(Long id)
    {
        return wmsCarrierApplyMapper.selectWmsCarrierApplyById(id);
    }

    /**
     * 查询产品承运申请列表
     * 
     * @param wmsCarrierApply 产品承运申请
     * @return 产品承运申请
     */
    @Override
    public List<WmsCarrierApply> selectWmsCarrierApplyList(WmsCarrierApply wmsCarrierApply)
    {
        return wmsCarrierApplyMapper.selectWmsCarrierApplyList(wmsCarrierApply);
    }

    /**
     * 新增产品承运申请
     * 
     * @param wmsCarrierApply 产品承运申请
     * @return 结果
     */
    @Override
    public int insertWmsCarrierApply(WmsCarrierApply wmsCarrierApply)
    {
        return wmsCarrierApplyMapper.insertWmsCarrierApply(wmsCarrierApply);
    }

    /**
     * 修改产品承运申请
     * 
     * @param wmsCarrierApply 产品承运申请
     * @return 结果
     */
    @Override
    public int updateWmsCarrierApply(WmsCarrierApply wmsCarrierApply)
    {
        return wmsCarrierApplyMapper.updateWmsCarrierApply(wmsCarrierApply);
    }

    /**
     * 批量删除产品承运申请
     * 
     * @param ids 需要删除的产品承运申请ID
     * @return 结果
     */
    @Override
    public int deleteWmsCarrierApplyByIds(Long[] ids)
    {
        return wmsCarrierApplyMapper.deleteWmsCarrierApplyByIds(ids);
    }

    /**
     * 删除产品承运申请信息
     * 
     * @param id 产品承运申请ID
     * @return 结果
     */
    @Override
    public int deleteWmsCarrierApplyById(Long id)
    {
        return wmsCarrierApplyMapper.deleteWmsCarrierApplyById(id);
    }
}
